import { request } from "@/utils/http";

const api_name = "/admin/cmn/dict";

export const reqGetTrademark = (page: any, limit: any) => {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: "get"
  });
};
//添加品牌
export const reqGetAddTrademark=(form)=>{
  return request.post(`/admin/product/baseTrademark/save`,form)
}

export const findByDictCode = (dictCode: string): any => {
  return request({
    url: `${api_name}/findByDictCode/${dictCode}`,
    method: "get",
  });
};

export const findByParentId = (parentId: number): any => {
  return request({
    url: `${api_name}/findByParentId/${parentId}`,
    method: "get",
  });
};

export const exportData = () => {
  return request({
    url: `${api_name}/exportData`,
    method: "get",
  });
};
